<?php
echo $name;
echo $name['firstname'];
echo $firstname;